﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Room
{
    class FieldBossAIStateBase
    {
        public RCAIFieldBoss controller;

        public void Enter()
        {
            this.OnEnter();
        }
        protected virtual void OnEnter()
        {

        }

        public void Leave()
        {
            this.OnLeave();
        }
        protected virtual void OnLeave()
        {

        }

        public void Tick()
        {
            this.OnTick();
        }

        protected virtual void OnTick()
        {

        }

        public virtual void StopAnimation()
        {
            controller.owner.StopAnimation();
        }

        public virtual void RestoreAnimation()
        {
            controller.owner.ai.DoStart();
            controller.owner.RestoreAnimation();
        }
    }
}
